package com.oracle.manager.service.feign;

import com.oracle.beans.*;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * @author 惜风
 */
@FeignClient("health-service")
public interface CheckGroupFeignClient {

    @GetMapping("/checkGroup/findList?currentPage={currentPage}&pageSize={pageSize}&queryString={queryString}")
    public ResultInfo findList(@PathVariable("currentPage") Integer currentPage,
                               @PathVariable("pageSize") Integer pageSize,@PathVariable("queryString") String queryString);

    @PostMapping("/checkGroup/add")
    ResultInfo add(CheckGroupData checkGroupData);

    @GetMapping("/checkGroup/checkItem/{id}")
    ResultInfo findCheckItemIds(@PathVariable("id") Integer id);

    @PutMapping("/checkGroup/update")
    ResultInfo update(CheckGroupData checkGroupData);

    @DeleteMapping("/checkGroup/delete/{id}")
    ResultInfo delete(@PathVariable("id") Integer id);
}
